package com.atguigu.gmall.feign.product;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.vo.CategoryTreeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @ClassName: CategoryFeignClient
 * @Author: WDD
 * @CreateTime: 2022-12-08  11:43
 * @Description:
 */
@FeignClient("service-product") //调用哪个微服务
public interface CategoryFeignClient {

    @GetMapping("/api/inner/rpc/product/category/tree")
    public Result<List<CategoryTreeVo>> getCategoryTree();
}
